package de.philipprawe.trainingsplan.action;

import java.util.ArrayList;
import java.util.Date;

import de.philipprawe.trainingsplan.beans.CaptureActivityBean;

public class CaptureActivityAction {
	
	public static boolean captureActivity(ArrayList<CaptureActivityBean> list, String activity, 
			Date date, String pulse){
		CaptureActivityBean temp = new CaptureActivityBean();
		temp.setActivity(activity);
		temp.setAvg_pulse(Double.parseDouble(pulse));
		temp.setDate(date);
		list.add(temp);
		return true;
	}

}
